package org.elec.mac.entity;

/**
 * Created by wangtao on 2018/6/15.
 */
public class SPrize {

    public SPrize(Integer id, Integer section) {
        this.id = id;
        this.section = section;
    }

    public SPrize() {
    }

    private Integer id;         //奖品ID

    private String prizeName;   //奖品名称

    private Integer prizeCount; //奖品数量

    private Integer probability;//中奖几率

    private Integer section;    //奖项等级

    private String picturePath; //图片路径

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPrizeName() {
        return prizeName;
    }

    public void setPrizeName(String prizeName) {
        this.prizeName = prizeName;
    }

    public Integer getPrizeCount() {
        return prizeCount;
    }

    public void setPrizeCount(Integer prizeCount) {
        this.prizeCount = prizeCount;
    }

    public Integer getProbability() {
        return probability;
    }

    public void setProbability(Integer probability) {
        this.probability = probability;
    }

    public Integer getSection() {
        return section;
    }

    public void setSection(Integer section) {
        this.section = section;
    }

    public String getPicturePath() {
        return picturePath;
    }

    public void setPicturePath(String picturePath) {
        this.picturePath = picturePath;
    }

    @Override
    public String toString() {

        String msg = "谢谢惠顾";

            switch (section){
                case 1:
                    msg = "一等奖";
                    break;
                case 2:
                    msg = "二等奖";
                    break;
                case 3:
                    msg = "三等奖";
                    break;
                case 4:
                    msg = "四等奖";
                    break;
            }

        return "SPrize{" +
                "id=" + id +
                ", section=" + msg +
                '}';
    }
}
